package com.steamedfish.auctioncloudprocess.feign.client;


import com.steamedfish.auctioncloudprocess.model.AuctionItemModel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Service
@FeignClient(value = "auction-cloud-ad-server")
public interface AdMailClient {

    /**
     * 调用ad的发邮件提醒接口
     *
     * @param id
     * @return int
     */
    @RequestMapping(value = "/auctioncloudadserver/service/adMailService/sendalertinfo", method = RequestMethod.POST)
    public String sendAlertMail(@RequestParam(value = "id") String id, @RequestParam(value = "mails") String[] mails);


    /**
     * 调用Ad发送结算邮件的接口
     *
     * @param id
     * @return int
     */
    @RequestMapping(value = "/auctioncloudadserver/service/adMailService/sendresultmail", method = RequestMethod.POST)
    public String sendResultMail(@RequestParam(value = "context") String context, @RequestParam(value = "subject") String subject, @RequestParam(value = "mails") String[] mails);
}
